//在主函数中从键盘接收X, Y , Z3个数，编写函数计算这3个数的立方和并返回计算结果：S=X3+Y3+Z3
package production.com.company;

import java.util.Scanner;

public class 第五题2 {
    public static void main(String[] args) {
        sgx();
    }
    public static void sgx(){
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入第一个数: ");
        int x= scanner.nextInt();
        System.out.println("请输入第二个数: ");
        int y= scanner.nextInt();
        System.out.println("请输入第三个数: ");
        int z=scanner.nextInt();
        System.out.println();
        System.out.println((int)(Math.pow(x,3)+Math.pow(x,3)+Math.pow(x,3)));
    }
}
